package com.dq.controller.app.user;

import com.dq.controller.in.user.WxUserQuery;
import com.dq.domain.sys.user.user.base.SysUser;
import com.dq.domain.sys.user.user.centre.UserAnonymous;
import com.dq.domain.sys.user.user.centre.UserLable;
import com.dq.exception.customException.AdminException;
import com.dq.service.AllService;
import com.dq.vo.ListDataVo;
import com.dq.vo.Vo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import java.util.List;

/**
 * @author cf
 */

@RestController
@RequestMapping("/app/userAnonymous/")
@Api(description = "匿名信管理")
public class AppUserAnonymousController extends AllService {

    @PostMapping("add")
    @ApiOperation("添加匿名信, 所属门店ID后台自动获取")
    public Vo add(@RequestBody UserAnonymous userAnonymous)throws AdminException {

        UserAnonymous save = userAnonymousService.save(userAnonymous);
        return new Vo(HttpStatus.OK);
    }

}
